Range

Function

This API is used to get the Format Camera's Storage page parameter range.

Request Message

None.

Sample:

POST /API/IPCMaintaint/IPCDisk/Range HTTP/1.1
{
    "version":"1.0",
    "data":{}
}

Response Message

Parameter Description

Table 1
ParameterRangeTypeDescription
channel_infoobjectFor details, see Table 2.
channels_items_datasameobject arrayAn array of objects whose parameters need to be synchronized (cloud-only). For details about the object contents, see Table 4 .
Table 2
ParameterRangeTypeDescription
CH1objectFor details, see Table 3.
IP_CH1
WIFI_CH1
Table 3
ParameterRangeTypeDescription
status"NoHdd",
"Unformat",
"Normal",
"Full",
"ReadOnly",
"HddError",
"Connecting",
"Offline",
"Occupied",
"Oversized",
"Broken",
"Degrade",
"Rebuilding",
"Backup",
"RaidHdd"
stringStatus of the storage device.
ip_address0 ~ 63string
serial_no0 ~ 20string
disk_type"ReadAndWriteDisk",
"RedundantDisk",
"ReadOnlyDisk"
stringDisk type.
total_size0 ~ 2147483647intTotal size.
free_size0 ~ 2147483647intFree space size.
total_time0 ~ 2147483647intTotal recording time.
free_time0 ~ 2147483647intRemaining recording duration.
format_enableboolWhether it can be formatted.
Table 4
ParameterRangeTypeDescription
datasame_channels0-Maximum number of channelsstring arrayChannel group that needs to synchronize parameters (cloud only)
datasame_items0-Maximum number of channelsstring arrayParameter fields that need to be synchronized (cloud only)

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result": "success",
    "data": {
        "channel_max": 32,
        "channels_items_datasame": {
            "type": "array",
            "min_size": 0,
            "max_size": 32,
            "items": [
                {
                    "datasame_items": {
                        "type": "array",
                        "min_size": 0,
                        "max_size": 32,
                        "items": {
                            "type": "string",
                            "items": ["channel_select"]
                        }
                    },
                    "datasame_channels": {
                        "type": "array",
                        "min_size": 0,
                        "max_size": 32,
                        "items": {
                            "type": "string",
                            "items": ["CH1"]
                        }
                    }
                },
                {
                    "datasame_items": {
                        "type": "array",
                        "min_size": 0,
                        "max_size": 32,
                        "items": {
                            "type": "string",
                            "items": ["channel_select"]
                        }
                    },
                    "datasame_channels": {
                        "type": "array",
                        "min_size": 0,
                        "max_size": 32,
                        "items": {
                            "type": "string",
                            "items": ["CH3"]
                        }
                    }
                }
            ]
        },
        "channel_info": {
            "type": "object",
            "items": {
                "CH1": {
                    "type": "object",
                    "items": {
                        "status": {
                            "type": "string",
                            "items": [
                                "NoHdd",
                                "Unformat",
                                "Normal",
                                "Full",
                                "ReadOnly",
                                "HddError",
                                "Connecting",
                                "Offline",
                                "Occupied",
                                "Oversized",
                                "Broken",
                                "Degrade",
                                "Rebuilding",
                                "Backup",
                                "RaidHdd"
                            ]
                        },
                        "ip_address": {
                            "type": "string",
                            "min_len": 0,
                            "max_len": 63
                        },
                        "serial_no": {
                            "type": "string",
                            "min_len": 0,
                            "max_len": 20
                        },
                        "disk_type": {
                            "type": "string",
                            "items": [
                                "ReadAndWriteDisk",
                                "RedundantDisk",
                                "ReadOnlyDisk"
                            ]
                        },
                        "total_size": {
                            "type": "int32",
                            "min": 0,
                            "max": 2147483647
                        },
                        "free_size": {
                            "type": "int32",
                            "min": 0,
                            "max": 2147483647
                        },
                        "total_time": {
                            "type": "int32",
                            "min": 0,
                            "max": 2147483647
                        },
                        "free_time": {
                            "type": "int32",
                            "min": 0,
                            "max": 2147483647
                        },
                        "format_enable": {"type": "bool"}
                    }
                }
            }
        }
    }
}

Error Code

See Response Messages Body and Common error_code for more information.